<%@page import="com.seeyon.ctp.common.taglibs.functions.Functions"%>
<%@page import="com.seeyon.ctp.common.SystemEnvironment"%>
<%@page import="com.seeyon.ctp.common.AppContext"%>
<%@page import="java.util.Locale"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="ctp" uri="http://www.seeyon.com/ctp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%><fmt:setTimeZone value="${ctp:getUserTimeZone()}" scope="session"/>
<%
    Locale localeIndex = AppContext.getLocale();

	response.setHeader("Cache-Control","no-store");
	response.setDateHeader("Expires", 0);
	response.setHeader("Pragma","no-cache");
	String sessionId = session.getId();
	String route = "";
	Cookie[] cookie = request.getCookies();
	for(int i = 0; i < cookie.length; i++) {
	  if(cookie[i].getName().trim().equalsIgnoreCase("JSESSIONID")) {
	      sessionId = cookie[i].getValue().trim();
	  }
	  if(cookie[i].getName().trim().equalsIgnoreCase("route")) {
		route = cookie[i].getValue().trim();
	  }
	}
	route= Functions.escapeJavascript(route);
    boolean isDevelop = AppContext.isRunningModeDevelop();
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit">
<!-- favicon.ico -->
<link rel="shortcut icon" type="image/x-icon" href="/seeyon/common/images/${ctp:getSystemProperty('portal.porletSelectorFlag')}/favicon${ctp:getSystemProperty('portal.favicon')}.ico"/>
<%--主框架公共样式--%>
<link rel="stylesheet" type="text/css" href="/seeyon/portal/pagelayout/front_common.css${ctp:resSuffix()}">
<%--主框架默认元素样式--%>
<link rel="stylesheet" type="text/css"  href="/seeyon${ vPortalObj.mainFrameElmentsCssPath}${ctp:resSuffix()}">
<%--主框架布局样式--%>
<link rel="stylesheet" type="text/css" href="/seeyon${vPortalObj.tCssPath}${fn:contains(vPortalObj.tCssPath,'cssData')?ctp:resSuffixWithoutQuestionMark():ctp:resSuffix()}${ctp:csrfSuffix()}">
<%--主框架皮肤--%>
<link rel="stylesheet" type="text/css" href="/seeyon${vPortalObj.msPath}${fn:contains(vPortalObj.msPath,'cssData')?ctp:resSuffixWithoutQuestionMark():ctp:resSuffix()}${ctp:csrfSuffix()}">
<link rel="stylesheet" type="text/css" href="/seeyon/portal/sections/tpl/sectiontpls.css${ctp:resSuffix()}">
<%--栏目外框样式--%>
<link rel="stylesheet" type="text/css" href="/seeyon${vPortalObj.ssPath}${fn:contains(vPortalObj.ssPath,'cssData')?ctp:resSuffixWithoutQuestionMark():ctp:resSuffix()}${ctp:csrfSuffix()}">
<%--二级页面组件样式--%>
<link rel="stylesheet" type="text/css" href="/seeyon/skin/dist/components/components_layout.css${ctp:resSuffix()}">
<link rel="stylesheet" type="text/css" href="/seeyon${vPortalObj.csPath}${fn:contains(vPortalObj.csPath,'cssData')?ctp:resSuffixWithoutQuestionMark():ctp:resSuffix()}${ctp:csrfSuffix()}">
<%--主框架字体图标--%>
<link rel="stylesheet" type="text/css" href="/seeyon/portal/icons/default/fonts/${vPortalObj.iconType}/iconfont.css${ctp:resSuffix()}">
<c:if test="${fn:contains(vPortalObj.iconCustomPath,'cssData')}">
<link rel="stylesheet" type="text/css" href="/seeyon${vPortalObj.iconCustomPath}${ctp:resSuffixWithoutQuestionMark()}${ctp:csrfSuffix()}">
</c:if>

<%-- IE8下的特殊样式 --%>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="/seeyon/portal/sections/tpl/default-mediaForIE8.css${ctp:resSuffix()}">
<![endif]-->
<!--[if (!IE)|(gte IE 9)]><!-->
<link rel="stylesheet" type="text/css" href="/seeyon/skin/dist/common/special-notIE8.css${ctp:resSuffix()}">
<!--<![endif]-->

<!-- shkk 首页弹窗css 引用  modal.css start -->
<link rel="stylesheet" type="text/css" href="/seeyon/portal/pagelayout/element/modal.css">
<!-- shkk end -->

</head>
<body onload="javascript:locationCurrentUser();javascript:initV5Portal();">
${vPortalObj.tHtmlContent}
${vPortalObj.datatplContents}
<!-- shkk 首页弹窗 start -->
<!-- Modal -->
<div class="modal-kk-modal" id="modal-one-kk-modal" aria-hidden="true">
    <div class="modal-dialog-kk-modal">
       <div class="modal-header-kk-modal">
       <!-- 标题区 -->
    <h2>通知-【电子审批流程-190801】临时调整</h2>
    <a href="#" class="btn-close-kk-modal" aria-hidden="true">×</a>
</div>

<!-- 弹窗正文区 -->
<div class="modal-body-kk-modal">
<!-- start -->

    <div class="contentText" id="content"><p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;"><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">各位员工，大家好：</span></span></span></span></span></span></p>

<p>&nbsp;</p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">现发布电子审批流程，临时调整相关通知。</span></span></span></p>

<p>&nbsp;</p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;"><span style="color: rgb(41, 128, 185);">一、临时调整内容</span></span></span></span></p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">原协议人：马雪枫经理</span></span></span></p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">现调整为：李东奎部长</span></span></span></p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">（其他内容不变）</span></span></span></p>

<p>&nbsp;</p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;"><span style="color: rgb(41, 128, 185);">二、临时调整时段</span></span></span></span></p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">即日起开始调整，<span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">截止时间再行通知。</span></span></span></span></span></span></p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;"><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">附：《</span></span></span></span></span></span>190801-电子审批业务流程<span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;"><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">》</span></span></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">以上特此通知。</span></span></span></p>

<p>&nbsp;</p>

<p><span style="line-height: normal;"><span style="font-size: 16px;"><span style="font-family: 微软雅黑;">人事行政部</span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>
</div>

<!-- end -->
</div>
       
        <div class="modal-footer-kk-modal">
            <a href="#" class="btn-kk-modal">确 定</a>
        </div>
    </div>
</div>
<!-- shkk end -->
</body>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script type="text/javascript" src="/seeyon/portal/common/js/html5shiv.min.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/portal/common/js/respond.min.js${ctp:resSuffix()}"></script>
<![endif]-->
<script type="text/javascript">
  var CSRFTOKEN = '<%=session.getAttribute("CSRFTOKEN")%>';
  var isCtpTop = true;
</script>
<script type="text/javascript" src="/seeyon/main.do?method=vPortalData&showName=${vPortalObj.showName }&random=${random}&portalId=${ctp:toHTML(vPortalObj.portalId)}&themeId=${ctp:toHTML(vPortalObj.themeId) }&mls=${vPortalObj.layoutStyleCode}&fsid=${vPortalObj.firstSpaceId }&fspath=${vPortalObj.firstSpacePath }&fstype=${vPortalObj.firstSpaceType }&menuSource=${vPortalObj.menuSource }${ctp:csrfSuffix()}"></script>
<script type="text/javascript">
var APPID = '<%=SystemEnvironment.getAppId()%>';
var previewVPortalSpace= false;
vPortal.hasLoginSection= "${vPortalObj.hasLoginSection}";
vPortal.openFrom= "<%=request.getSession().getAttribute("ssoFrom")%>";
vPortal.subPortal= "${vPortalObj.subPortal}";
vPortal.currentSpaceId= "${selectedSpaceId}";
vPortal.portalType= "${vPortalObj.type}";
vPortal.currentSpaceForNC= "${currentSpaceForNC}";
vPortal.spaceErrorMsg= "${vPortalObj.spaceErrorMsg}";
vPortal.moduleCodeSet= ${vPortalObj.moduleCodeSet};
vPortal.iconType= "${vPortalObj.iconType}";
vPortal.iconCustomPath= "";
vPortal.resSuffix = "${ctp:resSuffix()}";
<c:if test="${fn:contains(vPortalObj.iconCustomPath,'cssData')}">
vPortal.iconCustomPath= "${vPortalObj.iconCustomPath}";
</c:if>
document.title=vPortal.pageTitle;
var sessionId = "<%=session.getId()%>";
var route = "<%=route%>";
<%-- 显示空间位置 --%>
vPortal.showLocation=${vPortalObj.showLocation == "1"};
<%-- 栏目间间距 --%>
vPortal.sectionSpacing=${vPortalObj.sectionSpacing};
<%-- 栏目行高 --%>
vPortal.sectionBodyLineHeight=${vPortalObj.sectionBodyLineHeight};
<%-- 当前主题的所有热点 --%>
vPortal.themeHotspots = ${vPortalObj.themeHotspots};
<%-- 是否展开首页设置 --%>
var showSkinchoose = "${ctp:escapeJavascript(param.showSkinchoose)}";
var isPortalTemplateSwitching = "${ctp:escapeJavascript(param.isPortalTemplateSwitching)}";
vPortal.productVersion = "${ctp:getSystemProperty('portal.porletSelectorFlag')}";
vPortal.productAbout = "${ctp:getSystemProperty('portal.about')}";
</script>
<%--jquery--%>
<script type="text/javascript" src="/seeyon/common/js/jquery-debug.js${ctp:resSuffix()}"></script>
<%--国际化--%>
<script type="text/javascript" src="/seeyon/common/js/i18n-debug.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/i18n/portal/portal_i18n_<%=localeIndex%>.js${ctp:resSuffix()}"></script>
<%--tpl模板引擎JS文件--%>
<script type="text/javascript" src="/seeyon/common/js/laytpl.js${ctp:resSuffix()}"></script>
<%--主框架公共JS文件(含ctp ajax的JS文件)--%>
<%
    if (isDevelop) {
%>
<script type="text/javascript" src="/seeyon/portal/pagelayout/front_common.js${ctp:resSuffix()}"></script>
<%
    } else {
%>
<script type="text/javascript" src="/seeyon/portal/pagelayout/front_common-min.js${ctp:resSuffix()}"></script>
<%
    }
%>
<%--主框架元素JS文件(含自定义元素JS)--%>
<script type="text/javascript" src="/seeyon${ vPortalObj.mainFrameElmentsJsPath}${ctp:resSuffix()}"></script>
<%--主框架布局JS文件--%>
<script type="text/javascript" src="/seeyon${ vPortalObj.tJsPath}${fn:contains(vPortalObj.tJsPath, 'cssData') ? ctp:resSuffixWithoutQuestionMark() : ctp:resSuffix()}${ctp:csrfSuffix()}"></script>
<c:if test='${vPortalObj.sdHtmlContent !="" }'>
<%--栏目布局js文件 --%>
<script type="text/javascript" src="/seeyon${ vPortalObj.sdHtmlContent}${fn:contains(vPortalObj.sdHtmlContent,'jsData') ? ctp:resSuffixWithoutQuestionMark() : ctp:resSuffix()}${ctp:csrfSuffix()}"></script>
</c:if>
<%--Portal Hander--%>
<script type="text/javascript" src="/seeyon/common/js/portal_ajax.js${ctp:resSuffix()}"></script>
<%--栏目模板JS文件--%>
<%
    if (isDevelop) {
%>
<script type="text/javascript" src="/seeyon/portal/sections/section.js${ctp:resSuffix()}"></script>
<%
    } else {
%>
<script type="text/javascript" src="/seeyon/portal/sections/section-min.js${ctp:resSuffix()}"></script>
<%
    }
%>
<%--自定义栏目模板JS文件--%>
<%
    if (isDevelop) {
%>
<script type="text/javascript" src="/seeyon/portal/sections/tpl/sectiontpls.js${ctp:resSuffix()}"></script>
<%
    } else {
%>
<script type="text/javascript" src="/seeyon/portal/sections/tpl/sectiontpls-min.js${ctp:resSuffix()}"></script>
<%
    }
%>
<c:if test='${vPortalObj.moduleJsPath !=null && vPortalObj.moduleJsPath !="" }'>
<%--栏目需要引入的第三方模块js文件 --%>
<script id="moduleJsPath" type="text/javascript" src="/seeyon${ vPortalObj.moduleJsPath}${ctp:resSuffixWithoutQuestionMark()}${ctp:csrfSuffix()}"></script>
</c:if>
<%--消息盒子相关JS文件--%>
<script type="text/javascript" src="/seeyon/common/js/message/onlinemessage.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/message/BaseMessage.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/message/openMessage.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/message/sectionMappingLinkType.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/messageLinkConstants.js${ctp:resSuffix()}"></script>
<%--唤醒致信、下载致信的相关JS文件--%>
<%-- <script type="text/javascript" src="/seeyon/apps_res/uc/rongcloud/chat.js${ctp:resSuffix()}"></script> --%>

<%--组件JS文件--%>
<script type="text/javascript" src="/seeyon/main/common/js/jquery-ui.draggable-min.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/ui/seeyon.ui.common-debug.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/ui/seeyon.ui.dialog-debug.js${ctp:resSuffix()}"></script>
<script type="text/javascript" src="/seeyon/common/js/ui/seeyon.ui.progress-debug.js${ctp:resSuffix()}"></script>

<%--组织模型相关JS文件--%>
<script type="text/javascript" src="/seeyon/common/SelectPeople/js/orgDataCenter.js${ctp:resSuffix()}"></script>
<%
	String ssoFrom= (String)request.getSession().getAttribute("ssoFrom");
	if(null!=ssoFrom && !"PC".equals(ssoFrom)){
%>
<script type="text/javascript" src="/seeyon/i18n_init_<%=localeIndex%>.js${ctp:resSuffix()}"></script>
<%
	}
%>
<script type="text/javascript">
//监听首页界面丢失事件
if (vPortal.portalType === "0" && vPortal.subPortal === "false") {
    $(window).on('beforeunload', function() {
        beforeLogoutcLoseWin();
    })
    //ie浏览器才需要执行掉线操作
    if(SeeUtils.isIE){
        $(window).on('unload', function() {
             logoutcLoseWin();
        })
    }
}

function locationCurrentUser(){
	//定位开始
    if (vPortal.canLocation == 'true') {//定位开关开启
    	if (vPortal.currentCity && vPortal.currentCity != "") {
    		//无需定位，使用之前登录的缓存数据
    	}else{
	    	$.getScript(vPortal.locationUrl + "&callback=setCurrentPosition");
    	}
    }
}

/**
 * 更新位置信息
 */
function setCurrentPosition(json){
	/*  shkk json.city  报错 影响翻译
	if (json && json.province && json.city && json.rectangle) {
		if (json.city.indexOf("市") == (json.city.length - 1)) {
            vPortal.currentCity = json.city.substring(0, (json.city.length - 1)); //高德的定位城市名称多个"市"
        } else {
            vPortal.currentCity = json.city;
        }
		if (vPortal && vPortal.portalSet && vPortal.portalSet.portalType == "3") {

		}else{
			if(typeof(json.city)=="object"){
				return;
			}
			callBackendMethod("onlineManager", "setOnlineUserLngLat", json.province,json.city,json.rectangle, {
		        success: function(data) {
		            if (data == '__LOGOUT') {
		                offlineFun();
		                return;
		            }
		        }
		    });//异步把定位放到后台缓存
		}
	}
	*/
}

if (vPortal.portalType === "0" || vPortal.portalType === "3"){
    //记录当前的浏览器宽、高
    var lastWindowWidth = window.innerWidth;
    var lastWindowHeight = window.innerHeight;
    var resizeTimer = null;
    $(window).on("resize", function() {
        if(resizeTimer == null&&SeeUtils.isIE8){
            resizeTimer = false;
            return;
        }
        //和上次的宽高比较,一样的话就return，特定版本IE9的resize一直被触发,进入死循环，这里防护一下
        if(window.innerWidth == lastWindowWidth && window.innerHeight == lastWindowHeight ){
            return;
        }
        if (resizeTimer) clearTimeout(resizeTimer);
        resizeTimer = setTimeout(function(){
            if(!vPortal.isFromShowMenu){
                //把resize后的宽高存起来
                lastWindowWidth = window.innerWidth;
                lastWindowHeight = window.innerHeight;
                doResizeAll();
            }
        },200);
    });
}

/* shkk 菜单翻译 start */
$(document).ready(function(){
	//location.hash = 'modal-one-kk-modal';
	window.initLanguage = function (){
		$($(window.document)[0].getElementsByClassName('wideLogo')).attr({"onclick":"javascript:refreshCurrentSpace();setTimeout(window.initLanguage,1000)"});
		$($(window.document)[0].getElementsByClassName('showedSpaceNav')[0].getElementsByClassName('current')).attr({"onclick":"javascript:vPortalMainFrameElements.topCenterNav.showNavigation(0,this);setTimeout(window.initLanguage,1000);"});
		if(vPortal.currentUserLocale == 'ko'){
			$.ajax({
				url: '/seeyon/lolkk/orgSyncController.do?method=getLanguageConfig',
				type: "GET",
				dataType: "json",
				success: function(status) {
					var _text = status.toString().replace(/[ \r\n]/g,"").replace(/\s/g,"");
					var temp = $.parseJSON(_text);
					var _navArray = $('.lev1Title.navTitleName'); // 一级菜单
					var navArray = $('.lev2Title.navTitleName'); // 二级菜单
					var navArray_item = $('.lev3Title.navTitleName'); // 三级菜单
					$.each(temp,function(k,v){
						var _flag = 0; // 标记是几级菜单，一级菜单没有data-id
						for(var i = 0;i < navArray.length;i++){
							var _id = $(navArray[i]).attr('data-id');
							if(k == _id){
								$(navArray[i]).attr({'data-id':v});
								$(navArray[i]).find('.navText').html(v);
								break;
							}
						}
						for(var i = 0;i < _navArray.length;i++){
							var _id = $(_navArray[i]).attr('title');
							if(k == _id){
								$(_navArray[i]).attr({'title':v});
								$(_navArray[i]).find('.navText').html(v);
								break;
							}
						}
						
						for(var i = 0;i < navArray_item.length;i++){
							var _id = $(navArray_item[i]).attr('title');
							if(k == _id){
								$(navArray_item[i]).attr({'title':v});
								$(navArray_item[i]).find('span').html(v);
								break;
							}
						}
					})
				},
				error: function(status) {
					console.log("error：", status);
				}
			});
			$.ajax({
				url: '/seeyon/lolkk/orgSyncController.do?method=getContentConfig',
				type: "GET",
				dataType: "json",
				success: function(status) {
					var _temp = $.parseJSON(status);
					$.each(_temp,function(k,v){
					    var _temp1 =$('.magnet-type-1 .item'); // 应用磁铁
						for(var i = 0;i < _temp1.length;i++){
							if(_temp1[i].title == k){
								$(_temp1[i]).attr({'title':v});
								$(_temp1[i]).find(".magnet-name span").text(v);
								break;
							}
						}
					   /* 宣传语 */ 
						var _temp2 =$('.slideTitles p'); // 宣传语 
						for(var i = 0;i < _temp2.length;i++){
							if(_temp2[i].title == k){
								$(_temp2[i]).attr({'title':v});
								$(_temp2[i]).find('a').text(v);
								break;
							}
						}
						/* 待办事项 */ 
						var _temp3 =$('.showedTabs li'); // 
						for(var i = 0;i < _temp3.length;i++){
							if(_temp3[i].title == k){
								$(_temp3[i]).attr({'title':v});
								$($(_temp3[i]).find('div span')[0]).text(v);
								break;
							}else if($(_temp3[i]).find('div').attr('title') == k){
								$(_temp3[i]).find('div').attr({'title':v});
								$(_temp3[i]).find('div span').text(v);
							}
						}

						if($('.showedSpaceNav li').attr('title') == k){
							$('.showedSpaceNav li').attr({'title':v});
							$('.showedSpaceNav li').text(v);
						}
					});
				},
				error: function(status) {
					console.log("error：", status);
				}
			});
		}
	}
	setTimeout(window.initLanguage,1000)
});
/* shkk end */
</script>
<!-- 外部扩展的jsp页面加载到首页 -->
<c:forEach var="expandJSP" items="${ExpansionJsp}">
	<jsp:include page="${expandJSP}" />
</c:forEach>
</html>